﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooModulesInnerCityCityUnitMgrWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Modules.InnerCity.CityUnitMgr);
			Utils.BeginObjectRegister(type, L, translator, 0, 9, 2, 0);
			
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetSprite", _m_GetSprite);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlaySpriteAnimation", _m_PlaySpriteAnimation);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "CallLuaWithoutResult", _m_CallLuaWithoutResult);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "GridToVector", _m_GridToVector);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "VectorToGrid", _m_VectorToGrid);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "FindPath", _m_FindPath);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveSprite", _m_RemoveSprite);
			Utils.RegisterFunc(L, Utils.METHOD_IDX, "ParseIndexToGridPos", _m_ParseIndexToGridPos);
			
			
			Utils.RegisterFunc(L, Utils.GETTER_IDX, "ParticleSystemManager", _g_get_ParticleSystemManager);
            Utils.RegisterFunc(L, Utils.GETTER_IDX, "Material", _g_get_Material);
            
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 18, 1, 0);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "Initialize", _m_Initialize_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "Destory", _m_Destory_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "CreateCityGroup", _m_CreateCityGroup_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPersonPos", _m_GetPersonPos_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetUnitPos", _m_GetUnitPos_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PublishWalkCommand", _m_PublishWalkCommand_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PublishBuildCommand", _m_PublishBuildCommand_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PublishDismissBuildCommand", _m_PublishDismissBuildCommand_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "DestroyCityGroup", _m_DestroyCityGroup_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PublishPatrolCommand", _m_PublishPatrolCommand_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PublishBuildPosChange", _m_PublishBuildPosChange_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PublishStorageChange", _m_PublishStorageChange_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PublishResPosChange", _m_PublishResPosChange_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetRandomUnit", _m_GetRandomUnit_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PublicStopMoveCommand", _m_PublicStopMoveCommand_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PublicContinueMoveCommand", _m_PublicContinueMoveCommand_xlua_st_);
            
			
            Utils.RegisterObject(L, translator, Utils.CLS_IDX, "unitWalkSpeed", Yoozoo.Modules.InnerCity.CityUnitMgr.unitWalkSpeed);
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance);
            
			
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 1)
				{
					
					var gen_ret = new Yoozoo.Modules.InnerCity.CityUnitMgr();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Modules.InnerCity.CityUnitMgr constructor!");
            
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            
			try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
				if(LuaAPI.lua_gettop(L) == 0)
				{
					
					var gen_ret = new Yoozoo.Modules.InnerCity.CityUnitMgr();
					translator.Push(L, gen_ret);
                    
					return 1;
				}
				
			}
			catch(System.Exception gen_e) {
				return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
			}
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Modules.InnerCity.CityUnitMgr constructor!");
            
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Initialize_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _table = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.Initialize( _table );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Destory_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.Destory(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CreateCityGroup_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _unitsInfo = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                        var gen_ret = Yoozoo.Modules.InnerCity.CityUnitMgr.CreateCityGroup( _unitsInfo );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetPersonPos_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    int _personID = LuaAPI.xlua_tointeger(L, 1);
                    int _cityID = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = Yoozoo.Modules.InnerCity.CityUnitMgr.GetPersonPos( _personID, _cityID );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 1)) 
                {
                    int _personID = LuaAPI.xlua_tointeger(L, 1);
                    
                        var gen_ret = Yoozoo.Modules.InnerCity.CityUnitMgr.GetPersonPos( _personID );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Modules.InnerCity.CityUnitMgr.GetPersonPos!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetUnitPos_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    int _type = LuaAPI.xlua_tointeger(L, 1);
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                        var gen_ret = Yoozoo.Modules.InnerCity.CityUnitMgr.GetUnitPos( _type, _id );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PublishWalkCommand_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _walkInfo = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.PublishWalkCommand( _walkInfo );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PublishBuildCommand_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _buildInfo = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.PublishBuildCommand( _buildInfo );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PublishDismissBuildCommand_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 1);
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.PublishDismissBuildCommand( _id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_DestroyCityGroup_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.DestroyCityGroup(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PublishPatrolCommand_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    int _id = LuaAPI.xlua_tointeger(L, 1);
                    System.Collections.Generic.List<UnityEngine.Vector3> _path = (System.Collections.Generic.List<UnityEngine.Vector3>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.PublishPatrolCommand( _id, _path );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PublishBuildPosChange_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _table = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.PublishBuildPosChange( _table );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PublishStorageChange_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _table = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.PublishStorageChange( _table );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PublishResPosChange_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    XLua.LuaTable _table = (XLua.LuaTable)translator.GetObject(L, 1, typeof(XLua.LuaTable));
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.PublishResPosChange( _table );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetRandomUnit_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                        var gen_ret = Yoozoo.Modules.InnerCity.CityUnitMgr.GetRandomUnit(  );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PublicStopMoveCommand_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    int _type = LuaAPI.xlua_tointeger(L, 1);
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.PublicStopMoveCommand( _type, _id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PublicContinueMoveCommand_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    int _type = LuaAPI.xlua_tointeger(L, 1);
                    int _id = LuaAPI.xlua_tointeger(L, 2);
                    
                    Yoozoo.Modules.InnerCity.CityUnitMgr.PublicContinueMoveCommand( _type, _id );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetSprite(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    string _modelName = LuaAPI.lua_tostring(L, 2);
                    int _count = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.GetSprite( _modelName, _count );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PlaySpriteAnimation(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Mars.Got.SpriteAnim.AnimSprite _sprite = (Yoozoo.Mars.Got.SpriteAnim.AnimSprite)translator.GetObject(L, 2, typeof(Yoozoo.Mars.Got.SpriteAnim.AnimSprite));
                    Yoozoo.Mars.Got.SpriteAnim.SPRITE_ACTION_ENUM _action;translator.Get(L, 3, out _action);
                    
                    gen_to_be_invoked.PlaySpriteAnimation( _sprite, _action );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Update(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    
                    gen_to_be_invoked.Update(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_CallLuaWithoutResult(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Modules.InnerCity.CallLuaArg _arg = (Yoozoo.Modules.InnerCity.CallLuaArg)translator.GetObject(L, 2, typeof(Yoozoo.Modules.InnerCity.CallLuaArg));
                    
                    gen_to_be_invoked.CallLuaWithoutResult( _arg );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GridToVector(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector2Int _v2;translator.Get(L, 2, out _v2);
                    
                        var gen_ret = gen_to_be_invoked.GridToVector( _v2 );
                        translator.PushUnityEngineVector3(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_VectorToGrid(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector3 _v3;translator.Get(L, 2, out _v3);
                    
                        var gen_ret = gen_to_be_invoked.VectorToGrid( _v3 );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_FindPath(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    UnityEngine.Vector2Int _start;translator.Get(L, 2, out _start);
                    UnityEngine.Vector2Int _end;translator.Get(L, 3, out _end);
                    
                        var gen_ret = gen_to_be_invoked.FindPath( _start, _end );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_RemoveSprite(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    Yoozoo.Mars.Got.SpriteAnim.AnimSprite _sprite = (Yoozoo.Mars.Got.SpriteAnim.AnimSprite)translator.GetObject(L, 2, typeof(Yoozoo.Mars.Got.SpriteAnim.AnimSprite));
                    
                    gen_to_be_invoked.RemoveSprite( _sprite );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_ParseIndexToGridPos(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
            
            
                
                {
                    float[] _index = (float[])translator.GetObject(L, 2, typeof(float[]));
                    int _gridW = LuaAPI.xlua_tointeger(L, 3);
                    
                        var gen_ret = gen_to_be_invoked.ParseIndexToGridPos( _index, _gridW );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Instance(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Modules.InnerCity.CityUnitMgr.Instance);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_ParticleSystemManager(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.ParticleSystemManager);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Material(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			
                Yoozoo.Modules.InnerCity.CityUnitMgr gen_to_be_invoked = (Yoozoo.Modules.InnerCity.CityUnitMgr)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.Material);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
		
		
		
		
    }
}
